package services.user;

import persistences.PlanDAO;

public class Trainplan {
	private String TrainplanId;
	private String TrainplanName;
	private String year;
	private String start_time;
	private String end_time;
	public Trainplan(String TrainplanId,String TrainplanName,String year,String start_time,String end_time ){
		this.TrainplanId = TrainplanId;
		this.TrainplanName =TrainplanName ;
		this.year=year;
		this.start_time=start_time;
		this.end_time=end_time;
	}

	public boolean updateTrainplan(){
		boolean result = false;
		
		result = new PlanDAO().updateTrainplan(TrainplanId, TrainplanName,year,start_time,end_time);   
				
		return result;
	}


}
